import re

def validate_phone(phone):
    """验证手机号格式"""
    return bool(re.match(r'^1[3-9]\d{9}$', phone))

def validate_password(password):
    """验证密码格式"""
    return len(password) >= 6 and len(password) <= 20